home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
software
/
radiance
/
ez3d
/
unix
/
sun
/
install
< prev
next >
Wrap
Text File
|
1996-09-21
|
693b
|
38 lines
#!/bin/sh
# Motif library is not there in default Sun systems
# So copy libXm.so.3 to /usr/lib if not there
if [ ! -r /usr/lib/libXm.so.3 ]; then
id | grep root > /dev/null 2>&1
if [ "$?" != "0" ]; then
echo You must be root. Please enter root password...
su root $0
exit 0
fi
LIBTAR=libxm.tar
if [ ! -r $LIBTAR ]; then
LIBTAR=LIBXM.TAR
fi
tar xf $LIBTAR
CREATED_LIBXM=1
fi
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/dt/lib:/usr/openwin/lib:/usr/lib
# Invoke graphical installation program
INST=ez3di
if [ ! -r $INST ]; then
INST=EZ3DI
fi
./$INST -cdrom
# Cleanup
if [ "$CREATED_LIBXM" = "1" ]; then
rm -f /usr/lib/libXm.so.3
fi